/** 充值消费管理 **/
import { base_url } from '../request.config';

const rechargeApi = {
  info_statistics: 'thanos/account/payCount', //快递员充值消费页面列表
  info_statistics_export: 'thanos/account/exportPayCount', //快递员充值消费页面列表导出

  recharge_statistics: 'thanos/account/rechargeList', //快递员充值列表
  recharge_statistics_export: 'thanos/account/exportRecharge', //快递员充值列表导出

  consume_statistics: 'thanos/account/chargeList', //快递员消费列表
  consume_statistics_export: 'thanos/account/exportCharge', //快递员消费列表导出
}

const recharge: any = Object.keys(rechargeApi)
  .reduce((origin, item) => {
    origin[item] = `${base_url}/${rechargeApi[item]}`;
    return origin;
  }, {});

export default recharge;
